package com.koron.system.staff.mapper;

import com.koron.bean.base.BaseQueryBean;
import com.koron.bean.system.staff.dto.OutStaffApplyBean;
import com.koron.bean.system.staff.dto.OutStaffBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface OutStaffMapper {

    int insert(OutStaffBean staffBean);

    int update(OutStaffBean staffBean);

    int delete(String id);

    int deleteIds(List<String> ids);

    int audit(OutStaffApplyBean outStaffApplyBean);

    int patchAudit(@Param("beanList")List<OutStaffApplyBean> outStaffApplyBeanList);

    List<OutStaffApplyBean> queryAuditListByJurisdiction(@Param("bean") OutStaffApplyBean bean,@Param("currAccount")String currAccount,@Param("queryBean") BaseQueryBean queryBean);

    List<OutStaffApplyBean> queryAuditList(@Param("ids") List<String> ids);

    OutStaffApplyBean queryByPhone(String phone);
}
